package org.example.logger_demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 九转苍翎
 * Date: 2025/7/22
 * Time: 22:48
 */
@RequestMapping("/LoggerController")
@RestController
public class LoggerController {
    private static final Logger log = LoggerFactory.getLogger(LoggerController.class);
    @RequestMapping("/log")
    public String test(){
        log.trace("==========trace==========");
        log.debug("==========debug==========");
        log.info("==========info==========");
        log.error("==========error==========");
        return "test";
    }
}
